package vip.xiaomoli.lock.exception;

public class LockFailureException extends RuntimeException {

    private String lockKey;

    public LockFailureException(String lockKey, String message) {
        super(message);
        this.lockKey = lockKey;
    }

    public String getLockKey() {
        return lockKey;
    }

    @Override
    public String toString() {
        return "[" + lockKey + "]" + super.toString();
    }

}
